import instance from "./request.js"
//注册请求
export function registerApi(data){
    return instance.post("/register",data)
}
//登录请求
export function loginApi(data){
    return instance.post("/login",data)
}
//请求数据
export function getPhoneListApi(params){
    return instance.get("/getPhoneList",{params})

}
//单选按钮搜索数据
export function getsearchListApi(params){
    return instance.get("/byLableGetData",{params})

}
//添加
export function addPhoneApi(data){
    return instance.post("/addPhone",data)
}

//新 删除
export function deleteListApi(params){
    return instance.get("/delPhone",{params})
}
//编辑

export function editApi(data){
    return instance.post("/editPhone",data)
}

//修改用户信息
export function edituserApi(data){
    return instance.post("/editUser",data)
}